package com.mazsn.factory.producer;

import com.mazsn.factory.AbstractFactory;
import com.mazsn.factory.ColorFactory;
import com.mazsn.factory.ShapeFactory;

public class FactoryProducer {
	
	public static AbstractFactory getFactory(String choice){
	      if(choice.equalsIgnoreCase("SHAPE")){
	         return new ShapeFactory();
	      } else if(choice.equalsIgnoreCase("COLOR")){
	         return new ColorFactory();
	      }
	      return null;
	   }
}
